<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>PrimeFaces</title>
            </f:facet>
        </h:head>

        <h:body>

            <h:form id="frmPrincipal" prependId="false">
                <p:growl id="msg" life="6000" globalOnly="true" showDetail="true" />
                <div id="loading" style="position:fixed; left:0px; top:0px; z-index: 101;">
                    <p:ajaxStatus style="width:16px;height:16px;">  
                        <f:facet name="start"> 
                            <p:panel style="width:150px; background: #FBEC88; border:solid 2px #FAD42E !important;">
                                <h:panelGrid columns="2" style="width:100%;">
                                    <h:graphicImage value="#{resource['images:ajax-loader.gif']}"/>
                                    <h:outputText style="font-weight:bolder;" value="Cargando...."/>
                                </h:panelGrid>
                            </p:panel>
                        </f:facet>  
                        <f:facet name="complete">  
                            <h:outputText value="" />  
                        </f:facet>  
                    </p:ajaxStatus> 
                </div>


                <p:layout fullPage="true">

                    <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                        Header
                    </p:layoutUnit>

                    <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                        Footer
                    </p:layoutUnit>

                    <p:layoutUnit position="west" size="175" header="Left" collapsible="true">
                        <p:menu>
                            <p:submenu label="Resources">
                                <p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
                                <p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
                                <p:menuitem value="Forum" url="http://forum.primefaces.org/" />
                                <p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />

                            </p:submenu>

                        </p:menu>
                    </p:layoutUnit>

                    <p:layoutUnit position="center">
                        <ui:insert name="content">Content</ui:insert>


                    </p:layoutUnit>

                </p:layout>

            </h:form>
        </h:body>
    </f:view>


</html>

